package com.bible.test.pad.activity.fragment;

import com.bible.fire.R;
import com.bible.fire.pad.activity.BaseActivity;

import android.app.Activity;
import android.app.FragmentTransaction;
import android.os.Bundle;
import android.util.Log;

/**
 * 缩略图
 * @author zhangyp
 *
 */
public class BriefImageActivity extends Activity{
	
	private static final String TAG = BriefImageActivity.class.getSimpleName();
	
	@Override 
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView( R.layout.activity_leftright );
		initNewFragment();
	}
	
	private void initNewFragment(){
		Log.d(TAG, "init new fragment...");
		NewFragment newFragment = new NewFragment();
		Bundle args = new Bundle();		
		newFragment.setArguments(args);
		FragmentTransaction ft = this.getFragmentManager().beginTransaction();
		ft.replace(R.id.detailsLayout, newFragment);
		ft.commit();
	}
}
